<script type="text/javascript" src="jquery-1.8.2.min.js"></script>

<script type="text/javascript">
  $(document).ready(function(){
    $('#clickId').click(function(){
    //alert('hello')
      $('input[type="checkbox"]').attr('checked','true');
    });
  });
</script>  

<span id="clickId" style="cursor:pointer;color:blue;">
click here to check the checkbox
</span>

<input type="checkbox" >